<%inherit file="main.html"/>
<%block name="content">
	<section>
		<h2>Your Account Settings</h2>
		<form method="post" action="/settings">
			<div>
				<label>What should we call you?
					<input name="nickname"  
						%if settings.nickname:
							value="${settings.nickname}" 
						%endif
					placeholder="${user_nickname}">
				</label>
			</div>
			<div>
				<label>Where should we send email alerts?
					<input name="email" 
						%if settings.email:
							value="${settings.email}"
						%endif
					placeholder="${user_email}">
				</label>
			</div>
			<div>
				<label>Do you want to recieve an email when someone asks you a question?
					Yes <input name="question_emails" type="checkbox" value="True" 
						%if settings.question_emails:
							checked
						%endif
					>
				</label>
			</div>
			<div>
				<input type="submit" value="save">
			</div>
		</form>
		<form method="post" action="${user_link}">
			<input type="submit" value="${user_action}">
		</form>
	</section>
</%block>